//
//  Dish.m
//  OcDay1Homework
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Dish.h"

@implementation Dish
-(void)setName:(NSString *)name{
    _name = name;
}
-(NSString *)name{
    return _name;
}
-(void)setStuff:(NSString *)stuff{
    _stuff = stuff;
}
-(NSString *)stuff{
    return _stuff;
}
-(void)setPrice:(NSInteger)price{
    _price = price;
}
-(NSInteger)price{
    return _price;
}
-(void)myPrint{
    NSLog(@"%@ %@ %ld",_name,_stuff,_price);
}
-(instancetype)initWithName:(NSString *)name withStuff:(NSString *)stuff withPrice:(NSInteger)price{
    self = [super init];
    if(self){
        _name = name;
        _stuff = stuff;
        _price = price;
    }
    return self;
}

@end
